home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcl / src-16f.lha / ldb / ldb.h < prev    next >
C/C++ Source or Header  |  1991-11-06  |  562b  |  21 lines

  1. /* $Header: ldb.h,v 1.2 91/05/24 17:54:14 wlott Exp $ */
  2. #ifndef _LDB_H_
  3. #define _LDB_H_
  4.  
  5. #ifndef NULL
  6. #define NULL 0
  7. #endif
  8.  
  9. #define boolean int
  10. #define TRUE 1
  11. #define FALSE 0
  12.  
  13. #define SymbolValue(sym) (((struct symbol *)PTR(sym))->value)
  14. #define SetSymbolValue(sym,val) (((struct symbol *)PTR(sym))->value = (val))
  15. #define SymbolFunction(sym) (((struct symbol *)PTR(sym))->function)
  16. #define SetSymbolFunction(sym,val) (((struct symbol *)PTR(sym))->function = (val))
  17.  
  18. #define crap_out(msg) do { write(2, msg, sizeof(msg)); exit(-1); } while (0)
  19.  
  20. #endif _LDB_H_
  21.